/* 登录弹框高级样式 */
.login-modal-advanced .ant-modal-content {
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
	animation: modalSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.login-modal-advanced .ant-modal-header {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	border: none;
	padding: 0;
	margin: 0;
}
.login-modal-advanced .ant-modal-body {
	padding: 32px;
}

.login-header {
	padding: 32px;
	text-align: center;
	color: black;
	position: relative;
	overflow: hidden;
}

.login-header::before {
	content: '';
	position: absolute;
	top: -50%;
	left: -50%;
	width: 200%;
	height: 200%;
	background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
	animation: shimmer 3s ease-in-out infinite;
}

.login-title h2 {
	margin: 0 0 8px 0;
	font-size: 28px;
	font-weight: 700;
	letter-spacing: -0.5px;
	position: relative;
	z-index: 1;
}

.login-title p {
	margin: 0;
	font-size: 14px;
	opacity: 0.9;
	position: relative;
	z-index: 1;
}

.login-form .ant-form-item {
	margin-bottom: 20px;
	animation: formItemSlideUp 0.6s ease-out forwards;
	opacity: 0;
	transform: translateY(20px);
}

.login-form .ant-form-item:nth-child(1) {
	animation-delay: 0.1s;
}

.login-form .ant-form-item:nth-child(2) {
	animation-delay: 0.2s;
}

.login-form .ant-form-item:nth-child(3) {
	animation-delay: 0.3s;
}

.login-form .ant-form-item:nth-child(4) {
	animation-delay: 0.4s;
}

.login-form .ant-form-item:nth-child(5) {
	animation-delay: 0.5s;
}

.login-form .ant-form-item-label>label {
	font-weight: 600;
	color: #374151;
	font-size: 14px;
}

.custom-input {
	height: 48px;
	border-radius: 12px;
	border: 2px solid #e5e7eb;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	background: rgba(255, 255, 255, 0.8);
	backdrop-filter: blur(10px);
}

.custom-input:hover {
	border-color: #667eea;
	box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
	transform: translateY(-1px);
}

.custom-input:focus {
	border-color: #667eea;
	box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
	transform: translateY(-1px);
}

.input-icon {
	color: #667eea;
	font-size: 16px;
}

.error-message {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px 16px;
	background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
	border: 1px solid #f87171;
	border-radius: 12px;
	color: #dc2626;
	font-size: 14px;
	font-weight: 500;
	animation: errorSlideIn 0.3s ease-out;
}

.error-icon {
	font-size: 16px;
}

.login-button {
	height: 48px;
	border-radius: 12px;
	border: none;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	font-size: 16px;
	font-weight: 600;
	letter-spacing: 0.5px;
	box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	position: relative;
	overflow: hidden;
}

.login-button::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
	transition: left 0.5s;
}

.login-button:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 25px rgba(102, 126, 234, 0.4);
}

.login-button:hover::before {
	left: 100%;
}

.login-button:active {
	transform: translateY(0);
}

.login-button:disabled {
	opacity: 0.7;
	transform: none;
	cursor: not-allowed;
}

/* 模式切换样式 */
.mode-switch {
	text-align: center;
	padding: 20px 0 10px 0;
	border-top: 1px solid #e5e7eb;
	margin-top: 20px;
	animation: formItemSlideUp 0.6s ease-out forwards;
	animation-delay: 0.6s;
	opacity: 0;
	transform: translateY(20px);
}

.switch-text {
	color: #6b7280;
	font-size: 14px;
	margin-right: 8px;
}

.switch-button {
	color: #667eea !important;
	font-weight: 600;
	padding: 0;
	height: auto;
	font-size: 14px;
	transition: all 0.3s ease;
}

.switch-button:hover {
	color: #4f46e5 !important;
	transform: translateX(2px);
}

.switch-button:focus {
	color: #667eea !important;
}

/* 动画定义 */
@keyframes modalSlideIn {
	0% {
		opacity: 0;
		transform: scale(0.8) translateY(-20px);
	}

	100% {
		opacity: 1;
		transform: scale(1) translateY(0);
	}
}

@keyframes formItemSlideUp {
	0% {
		opacity: 0;
		transform: translateY(20px);
	}

	100% {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes errorSlideIn {
	0% {
		opacity: 0;
		transform: translateX(-10px);
	}

	100% {
		opacity: 1;
		transform: translateX(0);
	}
}

@keyframes shimmer {

	0%,
	100% {
		transform: rotate(0deg);
	}

	50% {
		transform: rotate(180deg);
	}
}

/* 响应式设计 */
@media (max-width: 768px) {
	.login-modal-advanced {
		width: 90% !important;
		margin: 0 auto;
	}

	.login-title h2 {
		font-size: 24px;
	}

	.login-modal-advanced .ant-modal-body {
		padding: 24px;
	}

	.login-header {
		padding: 24px;
	}
}